import {NgModule} from '@angular/core';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {HttpClientModule} from '@angular/common/http';
import {CommonModule, registerLocaleData} from '@angular/common';
import zh from '@angular/common/locales/zh';
import {NgZorroAntdModule} from 'ng-zorro-antd';
import {AdminRoutingModule} from './admin-routing.module';
import {AdminLayoutComponent} from './layout/admin-layout.component';
import {FERootModule} from 'angular-froala-wysiwyg';
import {FroalaEditorComponent} from '../common/froala-editor/froala-editor.component';
import {HeaderFullScreenComponent} from '../common/basic/fullscreen.component';
import {HeaderUserComponent} from '../common/basic/user.component';
import {SettingsService} from '../common/basic/settings.component';
import {SidebarComponent} from './layout/sidebar/sidebar.component';
import {HeaderComponent} from './layout/header/header.component';
import {AppHeaderSearchComponent} from './layout/header/search.component';
import {AppSelectComponent} from '../common/app-select/app-select.component';

registerLocaleData(zh);

@NgModule({
  declarations: [
    HeaderUserComponent,
    AdminLayoutComponent,
    FroalaEditorComponent,
    HeaderFullScreenComponent,
    SidebarComponent,
    HeaderComponent,
    AppHeaderSearchComponent,
    AppSelectComponent
  ],
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    HttpClientModule,
    NgZorroAntdModule,
    AdminRoutingModule,
    FERootModule,
  ],
  providers: [SettingsService],
  exports: [
    FroalaEditorComponent,
    AppSelectComponent,
  ],
  bootstrap: []
})
export class AdminModule {
}
